package org.meetunexpectedly.entity.middleground;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Description: 用户角色中间表
 * @Author: pupil
 * @Date: 2024/09/03 下午 9:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 角色id
    private Long roleId;

    // 用户id
    private Long userId;
}
